package com.xbongbong.pro.statistic.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName DataWarningListPojo
 * @Description 图表下数据预警列表pojo
 * @Author mengna.Deng
 * @Date 2021/4/20 21:00
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class DataWarningInChartPojo implements Serializable {
    private static final long serialVersionUID = -1L;

    /**
     * 数据预警id
     */
    private Long id;
    /**
     * 智数据预警名称
     */
    private String name;
    /**
     * 是否启用，0未启，1启用
     */
    private Integer enable;
    /**
     * triggerCondition里面的用attr和formId拼接的字段
     */
    private String triggerId;

    private List<DwTriggerConditionPojo> triggerCondition;

    public DataWarningInChartPojo(Long id, String name, Integer enable, String triggerId) {
        this.id = id;
        this.name = name;
        this.enable = enable;
        this.triggerId = triggerId;
    }

    public DataWarningInChartPojo(Long id, String name, Integer enable, String triggerId, List<DwTriggerConditionPojo> triggerCondition) {
        this.id = id;
        this.name = name;
        this.enable = enable;
        this.triggerId = triggerId;
        this.triggerCondition = triggerCondition;
    }

    public DataWarningInChartPojo() {
    }
}
